.model-config-form .form-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}

.model-config-form .ant-form-item-label > label {
  font-weight: 600;
  color: #1f2937;
}

.model-config-form .ant-input,
.model-config-form .ant-select-selector,
.model-config-form .ant-input-password {
  border-radius: 6px;
}

.model-config-form .ant-input:focus,
.model-config-form .ant-select-focused .ant-select-selector,
.model-config-form .ant-input-password:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.model-option {
  padding: 4px 0;
}

.model-option-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}

.model-option-description {
  font-size: 12px;
  color: #6b7280;
}

.suggested-models {
  margin-top: 24px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.suggested-models .ant-typography-title {
  margin-bottom: 12px;
  font-size: 14px;
  color: #374151;
}

.model-suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.model-suggestion {
  padding: 12px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.model-suggestion.selected {
  border-color: #52c41a;
  background: #f6ffed;
  box-shadow: 0 2px 8px rgba(82, 196, 26, 0.15);
}

.model-suggestion:hover {
  border-color: #1890ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.model-suggestion .model-code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 11px;
  color: #6b7280;
}

.model-suggestion .model-desc {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.4;
}

.model-suggestion .model-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.model-suggestion .model-tokens {
  font-size: 11px;
  color: #8b9dc3;
  margin-top: 2px;
}

/* 高级配置样式 */
.model-config-form .ant-collapse-ghost > .ant-collapse-item > .ant-collapse-header {
  padding: 12px 0;
  font-weight: 600;
  color: #374151;
}

.model-config-form .ant-collapse-content > .ant-collapse-content-box {
  padding-top: 16px;
}

.model-config-form .ant-input-number {
  border-radius: 6px;
}

.model-config-form .ant-input-number:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 验证状态样式 */
.model-config-form .ant-form-item-has-success .ant-input {
  border-color: #52c41a;
}

.model-config-form .ant-form-item-has-warning .ant-input {
  border-color: #faad14;
}

.model-config-form .ant-form-item-has-error .ant-input {
  border-color: #ff4d4f;
}

.model-config-form .ant-form-item-has-success .ant-input:focus,
.model-config-form .ant-form-item-has-warning .ant-input:focus,
.model-config-form .ant-form-item-has-error .ant-input:focus {
  box-shadow: none;
}

/* Alert 样式增强 */
.model-config-form .ant-alert {
  border-radius: 6px;
}

.model-config-form .ant-alert-success {
  background: #f6ffed;
  border-color: #b7eb8f;
}

.model-config-form .ant-alert-error {
  background: #fff2f0;
  border-color: #ffccc7;
}

.model-config-form .ant-alert-warning {
  background: #fffbe6;
  border-color: #ffe58f;
}

/* 表单项间距调整 */
.model-config-form .ant-form-item {
  margin-bottom: 20px;
}

.model-config-form .ant-collapse .ant-form-item {
  margin-bottom: 16px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .model-config-form {
    margin: 0 -16px;
  }
  
  .model-suggestions {
    grid-template-columns: 1fr;
  }
  
  .ant-modal-body {
    padding: 16px;
  }
  
  .ant-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .ant-col {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

@media (max-width: 480px) {
  .model-config-form .ant-modal-header {
    padding: 12px 16px;
  }
  
  .model-config-form .ant-modal-footer {
    padding: 8px 16px 16px;
  }
  
  .form-title {
    font-size: 14px;
  }
  
  .suggested-models {
    padding: 12px;
  }
  
  .model-suggestion {
    padding: 8px;
  }
  
  .model-config-form .ant-collapse-ghost > .ant-collapse-item > .ant-collapse-header {
    padding: 8px 0;
    font-size: 14px;
  }
  
  .model-config-form .ant-form-item {
    margin-bottom: 16px;
  }
}